package com.gilight.base.model.groupshopad;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.gilight.base.aspect.annotation.SearchField;
import com.gilight.base.aspect.annotation.SearchTable;
import com.gilight.base.enums.SearchEngineTokenizerType;
import com.gilight.base.model.SuperDO;
import lombok.Data;

import java.util.Date;

/**
 * Created by rize on 2019/7/1.
 */
@Data
@TableName("unimall_groupshop_ad")
public class GroupShopAdDO extends SuperDO {

    @JsonSerialize(using= ToStringSerializer.class)
    @SearchField("id")
    @TableField("id")
    private Long id;

    /**
     * 商品标题
     */
    @SearchField(value = "name", tokenizer = SearchEngineTokenizerType.STAND)
    @TableField("name")
    private String name;



    /**
     * 商品一句话描述
     */
    @SearchField(value = "description", tokenizer = SearchEngineTokenizerType.STAND)
    private String description;


    /**
     * 商品状态
     */
    @SearchField("status")
    private Integer status;






    @SearchField("gmt_update")
    @TableField("gmt_update")
    private Date gmtUpdate;

    @SearchField("gmt_create")
    @TableField("gmt_create")
    private Date gmtCreate;
    @SearchField("zzjg_id")
    @TableField("zzjg_id")
    private Long zzjgId;

    @TableField("order_c")
    private Integer orderC;


}
